<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>文章内容展示</title>
<link rel="shortcut icon" href="favicon.ico">
<link href="/hmp/css/font-awesome.css?v=4.4.0" rel="stylesheet">
<link href="/hmp/css/animate.css" rel="stylesheet">
<link href="/hmp/css/style.css?v=4.1.0" rel="stylesheet">
<link href="/hmp/layui/layui/css/layui.css" rel="stylesheet">
<link href="/hmp/editor.md-master/css/editormd.css" rel="stylesheet">

</head>
<body class="gray-bg">
	<!--第一层  数据展示 -->
	<div class="wrapper wrapper-content animated fadeInRight">
		<!-- Panel Other -->
		<div class="ibox float-e-margins">
			<div class="ibox-content">
				<div class="row row-lg">
					<!-- Example Events -->
					<div class="example-wrap">
						<div class="example">
						
						 <!-- 今天在做页面的时候发现写的textarea中会有一些默认的空格出现，鼠标可以在里面任意点击。发现，原来是<textarea></textarea>标签没有写在同一行所致。。。 -->
						  <textarea id="content" style="display:none">${mdText!''}</textarea>
						  <div id="preview">
								     
						  </div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<!-- 底层  占个坑  -->
	<div></div>

</body>

<!-- 全局js -->
<script src="/hmp/js/jquery.min.js"></script>
<script src="/hmp/js/bootstrap.min.js?v=3.3.6"></script>
<!-- 自定义js -->
<script src="/hmp/js/content.js?v=1.0.0"></script>
<script src="/hmp/layui/layui/layui.js"></script>
<script src="/hmp/editor.md-master/editormd.min.js"></script>
<script src="/hmp/editor.md-master/lib/prettify.min.js"></script>
<script src="/hmp/editor.md-master/lib/raphael.min.js"></script>
<script src="/hmp/editor.md-master/lib/underscore.min.js"></script>
<script src="/hmp/editor.md-master/lib/sequence-diagram.min.js"></script>
<script src="/hmp/editor.md-master/lib/flowchart.min.js"></script>
<script src="/hmp/editor.md-master/lib/jquery.flowchart.min.js"></script>
<script src="/hmp/editor.md-master/lib/marked.min.js"></script>
 
 
<script type="text/javascript">
 		
 //document.getElementById('preview').innerHTML =
   //  marked(document.getElementById('content').value);
 
var aa=document.getElementById('content').value;
  editormd.markdownToHTML("preview", {
                        markdown        : aa ,//+ "\r\n" + $("#append-test").text(),
                        htmlDecode      : false,       // 开启 HTML 标签解析，为了安全性，默认不开启
                        htmlDecode      : "style,script,iframe",  // you can filter tags decode
                        //toc             : false,
                        tocm            : true,    // Using [TOCM]
                        //tocContainer    : "#custom-toc-container", // 自定义 ToC 容器层
                        //gfm             : false,
                        //tocDropdown     : true,
                        // markdownSourceCode : true, // 是否保留 Markdown 源码，即是否删除保存源码的 Textarea 标签
                        emoji           : true,
                        taskList        : true,
                        tex             : true,  // 默认不解析
                        flowChart       : true,  // 默认不解析
                        sequenceDiagram : true,  // 默认不解析
                    });
</script>

</html>
